package com.lysj.admin.master.bussiness.company.invoice.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lysj.admin.master.bussiness.company.CompanyEntity;
import com.lysj.admin.master.common.spring.mpbase.MyEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author Created by drj on 2020-01-06 19:50
 * @description 发票申请
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("lysj_company_invoice_apply")
@Table(name = "lysj_company_invoice_apply",
        indexes = {@Index(name = "idx_company_id", columnList = "companyId")})
public class InvoiceApply extends CompanyEntity {

    private String rechargeRecordId;
    private String serviceProviderId;
    private String serviceProviderName;
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal serviceMoney;//服务费
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal leftMoney;//剩余金额
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal businessMoney;//业务费

}
